#include <iostream>
using namespace std;

/**
 * 运算符重载：：关系运算符重载
*/

class Test{
    public:
        int num = 10;

        bool operator==(const Test t){
            
            return this->num == t.num;
        };
};

int main(){
    Test t1;
    Test t2;

    // t1 == t2:1
    cout << "t1 == t2:" << (t1 == t2) << endl;
}